# coding: utf-8
from pathlib import Path
from cryptography.fernet import Fernet

# change DEBUG to False if you want to compile the code to exe
DEBUG = "__compiled__" not in globals()


YEAR = 2024
AUTHOR = "XZWMC"
VERSION = "v0.0.1"
APP_NAME = "XZWMC"
HELP_URL = "https://qfluentwidgets.com"
REPO_URL = "https://github.com/zhiyiYo/PyQt-Fluent-Widgets"
FEEDBACK_URL = "https://github.com/zhiyiYo/PyQt-Fluent-Widgets/issues"
DOC_URL = "https://qfluentwidgets.com/"

API = "http://api.xzwmc.com:50090"
USER_LOGIN = API + "/user/login"
RESOURCES = API + "/resource"
COMMENT = API + "/comment"
PURCHASED = API + "/purchased"

VERSION_LIST = "https://launchermeta.mojang.com/mc/game/version_manifest_v2.json"

KEY = b"7oMahiLQ2N-LJBxa2hwL4lwpjEOCxa1t18SQ_x_qCGg="
ENCRYPTION_STATION = Fernet(KEY)

CONFIG_FOLDER = Path("AppData").absolute()
CONFIG_FILE = CONFIG_FOLDER / "config.json"

DONWLOAD_MAX_CONCURRENT = 6  # 下载器最大连接数
DONWLOAD_SOURCE = 1  # 0为官方，1为bmclapi
MINECRAFT_DIR = "C:\\.mineraft"  # 我的世界的存储路径

S_TYPE = "windows"  # 系统类型

